﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq.Mapping;

namespace BSInstraAPI.Models
{

    /// <summary>
    /// Baison用户类
    /// </summary>
    [Table(Name = "user_")]
    public class Users
    {
        /// <summary>
        /// uuid
        /// </summary>
        [Column(Name = "uuid_",IsPrimaryKey =true )]
        public string Uuid { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        [Column(Name = "screenName")]
        public string Loginid { get; set; }

        /// <summary>
        /// 全名
        /// </summary>
        [Column(Name = "fullUserName")]
        public string FullName { get; set; }

        /// <summary>
        /// 原生DES密码
        /// </summary>
        [Column(Name = "password_")]
        public string Pass { get; set; }

        /// <summary>
        /// 另一DES密码
        /// </summary>
        [Column(Name = "password2")]
        public string Pswd { get; set; }

        /// <summary>
        /// 密码是否已加密
        /// </summary>
        [Column(Name = "passwordEncrypted")]
        public bool Encrypted { get; set; }

        /// <summary>
        /// 用户是否激活
        /// </summary>
        [Column(Name = "active_")]
        public bool Active { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        [Column(Name = "passwordModifiedDate")]
        public DateTime? PswdModifyDateTime { get; set; }

    }
}